package org.qdao.model;

import java.math.BigDecimal;
import java.sql.Timestamp;

import org.qdao.annotation.Column;
import org.qdao.annotation.Column.DBColumnType;
import org.qdao.annotation.PrimaryKey;
import org.qdao.annotation.Table;

@Table(name = "T_DOG", description = "狗的信息表")
public class Dog {

	@Column(name = "D_ID", description = "狗的编号", decimal = 1, length = 20, type = DBColumnType.NUMBER, nullable = false)
	@PrimaryKey()
	public BigDecimal id;

	@Column(name = "D_NAME", description = "狗的昵称", decimal = 1, length = 64, type = DBColumnType.VARCHAR, nullable = false)
	@PrimaryKey()
	public String name;

	@Column(name = "D_TYPE", description = "狗的种类", decimal = 1, length = 64, type = DBColumnType.VARCHAR, nullable = false)
	public String type;

	@Column(name = "D_DATE", description = "狗的购买日期", type = DBColumnType.DATE, nullable = false)
	public Timestamp date;
}
